package com.linchong.concurrency.chapter7;

/**
 * @Author:linchong
 * @CreateTime:2020-01-06 22:42
 * @Description:
 */
public class Bank3 {
	public static void main(String[] args) {
		final SynchronizedRunnable ticketWindow = new SynchronizedRunnable();
		Thread windowThread1 = new Thread(ticketWindow, "一号窗口");
		Thread windowThread2 = new Thread(ticketWindow, "二号窗口");
		Thread windowThread3 = new Thread(ticketWindow, "三号窗口");
		windowThread1.start();
		windowThread2.start();
		windowThread3.start();
	}
}
